/*
Name: Kabir Kang
File: cardtest1.c
Date: 7/13/14
Summary: Tests smithy card for proper cards in hand 
 */

#include <string.h>
#include <stdio.h>
#include "dominion.h"
#include "dominion_helpers.h"
#include "rngs.h"


int main(int argc, char * argv[])
{
  int seed = 100;
  int numPlayers = 2;
  int preHandCount = 0;

  int k[10] = {adventurer, council_room, feast, gardens, mine, remodel, smithy, village, baron, great_hall};

  struct gameState g;
  initializeGame(numPlayers, k, seed, &g);

  preHandCount = g.handCount[0];

  cardEffect(smithy, 0, 0, 0, &g, 1, 0);

  if (g.handCount[0] == preHandCount + 2)
	printf("smithy: PASS cards are gained and discarded correctly. \n");
  else
    printf("smithy: FAIL cards aren't added and discarded correctly. \n");

  if (g.playedCardCount == 1)
	printf("smithy: PASS card played.\n");
  else
    printf("smithy: FAIL card not played.\n");


  return 0;
}
